﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLine.Common;
using ZoneLine.Views;

namespace ZoneLine.Models
{
    public class QOP050StationResult : StationResultBase
    {
        private string _nutScanCode;
        private string _partType;
        private string _result;
        private float _tightenTorque;
        private float _tightenAngle;
        private float _pressPosition;
        private float _pressForce;
        private float _cycleTime;

        /// <summary>
        /// 螺母批次码
        /// </summary>
        [DgColumnAttr("螺母批次码")]
        public string NutScanCode
        {
            get { return _nutScanCode; }
            set { SetProperty(ref _nutScanCode, value); }
        }

        /// <summary>
        /// 产品型号
        /// </summary>
        [DgColumnAttr("产品型号")]
        public string PartType
        {
            get { return _partType; }
            set { SetProperty(ref _partType, value); }
        }

        /// <summary>
        /// 结果
        /// </summary>
        [DgColumnAttr("结果")]
        public string Result
        {
            get { return _result; }
            set { SetProperty(ref _result, value); }
        }

        /// <summary>
        /// 拧紧力矩
        /// </summary>
        [DgColumnAttr("拧紧力矩")]
        public float TightenTorque
        {
            get { return _tightenTorque; }
            set { SetProperty(ref _tightenTorque, value); }
        }

        /// <summary>
        /// 拧紧角度
        /// </summary>
        [DgColumnAttr("拧紧角度")]
        public float TightenAngle
        {
            get { return _tightenAngle; }
            set { SetProperty(ref _tightenAngle, value); }
        }

        /// <summary>
        /// 循环时间
        /// </summary>
        [DgColumnAttr("循环时间")]
        public float CycleTime
        {
            get { return _cycleTime; }
            set { SetProperty(ref _cycleTime, value); }
        }

        /// <summary>
        /// 螺纹长度
        /// </summary>
        private float _threadLength;
        [DgColumnAttr("螺纹长度")]
        public float ThreadLength
        {
            get { return _threadLength; }
            set => SetProperty(ref _threadLength, value);
        }

        /// <summary>
        /// 压机位置
        /// </summary>
        [DgColumnAttr("压机位置")]
        public float PressPosition
        {
            get { return _pressPosition; }
            set => SetProperty(ref _pressPosition, value);
        }

        /// <summary>
        /// 压机压力
        /// </summary>
        [DgColumnAttr("压机压力")]
        public float PressForce
        {
            get { return _pressForce; }
            set => SetProperty(ref _pressForce, value);
        }

    }
}
